/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.absisgroup.nsc.home;

import com.absisgroup.nsc.utilities.GenericServlet;
import com.absisgroup.nsc.utilities.Util;
import java.sql.Connection;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 *
 * @author Hue
 */
public class Home extends GenericServlet {

    @Override
    public int process(final Connection con, final HttpServletRequest request, final HttpServletResponse response) throws Exception {
        //response.setHeader("Cache-Control", "no-cache");
        String datePattern = "dd/MM/yyyy";//getMessage(request, "FORMAT.DATE");
        final String senchaDateFormat = Util.replace(Util.replace(Util.replace(datePattern, "dd", "d"), "MM", "m"), "yyyy", "Y");
        request.setAttribute("senchaDateFormat", senchaDateFormat);
        
        return RUN_JSP;
    }
    
}
